{extend name="public/base"}
{block name='main'}
<form class="layui-form layui-form-pane" action="" style="padding:20px;">
  <input type="hidden" name="id" value="{$info.id|default=''}" />
  <input type="hidden" name="img" id="J_img" value="{$info.img|default=''}">
  <div class="layui-form-item">
    <label class="layui-form-label">友链名称</label>
    <div class="layui-input-block">
      <input type="text" name="name" id="name" placeholder="请输入" class="layui-input" value="{$info.name|default=''}">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">链接地址</label>
    <div class="layui-input-block">
      <input type="text" name="url" id="url" placeholder="请输入" class="layui-input" value="{$info.url|default=''}">
    </div>
  </div>



  <div class="layui-form-item">
    <label class="layui-form-label">排序值</label>
    <div class="layui-input-block">
      <input type="number" name="ordid" id="ordid" placeholder="请输入" class="layui-input" value="{$info.ordid|default=0}">
    </div>
  </div>

  <div class="layui-form-item" pane>
    <label class="layui-form-label">是否启用</label>
    <div class="layui-input-block">
      <input type="radio" title="是" name="status" value="1"  {eq name="$info.status|default='1'" value="1"}checked="checked"{/eq}>
      <input type="radio" title="否" name="status" value="0"  {eq name="$info.status|default='0'" value="0"}checked="checked"{/eq}>
    </div>
  </div>

  <div class="layui-form-item">
    <label class=""></label>
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit="" lay-filter="content_edit">提交保存</button>
    </div>
  </div>
</form>
<script type="text/javascript" src="__PUBLIC__/admin/layui/layui.js"></script>
<script>
  //Demo
  layui.use(['layer','jquery','form','upload'], function () {
    // 操作对象
    var layer = layui.layer,$ = layui.jquery,form = layui.form, upload = layui.upload;

    Oper.initUpdate(layui, '友链', 'content_edit', 'flink/edit');
  });
</script>
{/block}